<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <title>JavaScript 生成并下载二维码</title>
  </head>
  <body>
    <div>
      <img src="" alt="" width="300" height="300" />
    </div>
    <div>
      <input type="text" />
    </div>
    <p>
      <button id="generate">生成</button>
      <button id="download">下载</button>
    </p>
    <script src="script.js"></script>
  </body>
</html>
